package cn.jn.lhm.teacher.service;

import cn.jn.lhm.teacher.entity.EduSubject;
import cn.jn.lhm.teacher.entity.subject.OneSubject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/1 - 21:22
 */
public interface EduService {
    /**
     * 添加课程
     * @param file
     * @param eduService
     */
    void saveSubject(MultipartFile file, EduService eduService);

    /**
     * 根据父Id查询分类
     * @param wrapper
     * @return
     */
    EduSubject querySubjectByPid(QueryWrapper<EduSubject> wrapper);


    /**
     * 保存分类
     * @param oneSubject
     * @return
     */
    int save(EduSubject oneSubject);

    /**
     * 树形结构返回所有的数据
     * @return
     */
    List<OneSubject> getSubjectTree();

}
